import http from '@/utils/request'

export default {

    // 添加书本
    addBook(params) {
        return http.post('/books/add', params)
    },
    // 图书列表
    bookList(params) {
        return http.get('/books/list', params)
    },
    // 根据关键字搜索图书
    searchBook(params) {
        return http.get('/books/searchBook', { params: params })
    },
    // 得到图书信息
    getBookInfo(params) {
        return http.get('/books/info', { params: params })
    },
    createBorrow(params) {
        return http.post('/books/borrowBool', params)
    },
    userBorrowList(params) {
        return http.get('/books/getUserBorrowList', { params: params })
    }

}